<?php
include_once("./incl/tk_api.php");

$tk_path = parse_ini_file("php-embed.ini");
$tk_path = $tk_path['toolkit_dir'];

//initGlobals(dirname(__FILE__));
initGlobals($tk_path);// Acum nu mai trebuie compilat de fiecare data cand se schimba fisierul

if($params = getProgramParams($argc, $argv)) {
	include_once("./incl/tk_api_cli.php");
	parseCommand($params);
}	
else { 	
	include_once("./incl/tk_api_gui.php");
	createGuiWindow();
}